<html>
<head>
<title>DOM Range Example</title>
</head>
<body contenteditable="true">

hello world

<script>

document.body.onblur = function(){
	console.log('document.body.onblur');
};

document.body.blur();// body 并没有失去焦点；

document.body.onfocus = function(){
	console.log('document.body.onfocus');
};


setTimeout(function(){
	console.log('setTimeout focus');
	document.body.focus();// 手动让body失去焦点后，body并没能获取焦点；
}, 3000);

</script>
</body>
</html>